package cn.seecoder.courselearning.dto.question;

import cn.seecoder.courselearning.po.question.Question;
import lombok.Data;

/**
 * 作答界面的题目DTO类
 */
@Data
public class QuestionInfoDTO {
        private Integer id;
        private Integer course_id;
        private String detail;
        private String optionA;
        private String optionB;
        private String optionC;
        private String optionD;

        public QuestionInfoDTO(Question question){
                this.id = question.getId();
                this.course_id = question.getCourse_id();
                this.detail = question.getDetail();
                this.optionA = question.getOptionA();
                this.optionB = question.getOptionB();
                this.optionC = question.getOptionC();
                this.optionD = question.getOptionD();
        }
}
